package com.galaxy.commom.base.exception;

import com.galaxy.commom.base.enums.ResultCodeEnum;

/**
 * 消息队列异常处理类
 * @author caijinbang
 * @date 2018/9/18 00:05
 */
public class RocketMqException extends BaseException {

  public RocketMqException() {
  }

  public RocketMqException(Throwable ex) {
    super(ex);
  }

  public RocketMqException(String message) {
    super(message);
  }

  public RocketMqException(String message, Throwable ex) {
    super(message, ex);
  }


  /**
   * 封装异常
   * @param errorCode
   * @param errMsg
   * @param isTransfer 是否转换异常信息，如果为false,则直接使用errMsg信息
   */
  public RocketMqException(ResultCodeEnum errorCode, String errMsg,Boolean isTransfer) {
    super(errorCode, errMsg,isTransfer);
  }

  public RocketMqException(ResultCodeEnum errCode, Throwable cause,String ... errMsg) {
    super(errCode,cause, errMsg);
  }
}
